/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hycreate.platform.modules.crm.workbench;

import java.util.Date;
import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hycreate.platform.common.persistence.DataEntity;
import com.hycreate.platform.modules.crm.business.Customer;

/**
 * 工作态的主体功能Entity
 * @author zzf
 * @version 2016-12-03
 */
public class Workbench extends DataEntity<Workbench> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 公司名
	private String address;		// 地址
	private String content;		// 公司简介
	private Date lastContact;		// 上次联系时间
	private String userid;		// 被选中
	private String statusId;		// 状态
	private String currentCustomer;   //当前选中的客户
	private List<Customer> customers;
	
	 //联系人id
	private String uname; //用户的id
	private String Industry;//用户的行业
	
	private String createUser;	//创建用户的名字
	private String updateUser;	//修改用户的名字
	
	public Workbench() {
		super();
	}

	public Workbench(String id){
		super(id);
	}

	@Length(min=1, max=100, message="公司名长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=150, message="地址长度必须介于 0 和 150 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=500, message="公司简介长度必须介于 0 和 500 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getLastContact() {
		return lastContact;
	}

	public void setLastContact(Date lastContact) {
		this.lastContact = lastContact;
	}
	
	@Length(min=0, max=64, message="被选中长度必须介于 0 和 64 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=0, max=64, message="装态长度必须介于 0 和 64 之间")
	public String getStatusId() {
		return statusId;
	}

	public void setStatusId(String statusId) {
		this.statusId = statusId;
	}



	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getIndustry() {
		return Industry;
	}

	public void setIndustry(String industry) {
		Industry = industry;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public String getCurrentCustomer() {
		return currentCustomer;
	}

	public void setCurrentCustomer(String currentCustomer) {
		this.currentCustomer = currentCustomer;
	}




	
	
}